package com.composite.demo1;

/**
 * Component 是组合中的对象声明接口，在适当的情况下，实现所有类共有接口的默认行为。声明一个接口用于访问和管理Component
 *
 * @author Administrator
 *
 */
public abstract class Company {

	private String name;

	public Company(String name) {
		this.name = name;
	}

	public Company() {
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public abstract void add(Company company);

	public abstract void romove(Company company);

	public abstract void display(int depth);

}
